package com.shiliao.framework.network;

import android.content.Context;
import android.widget.ImageView;

import java.io.Serializable;
import java.util.Map;

/**
 * Created by yx on 2017/6/5.
 */

public abstract class BaseNetWork implements Serializable {
    public abstract void loadDataByGet(final String url, final ICallBack mCallBack) throws Exception;

    public abstract void loadDataByPost(final String url, final String body, ICallBack mCallBack) throws Exception;

    public abstract void loadImage(Context mContext, String url, ImageView view, int defaultImage, int failImage) throws Exception;

    public abstract void loadDataByPost(final String url, final Map param, ICallBack mCallBack) throws Exception;

    public abstract void postPic(final String url, final Map param, ICallBack mCallBack) throws Exception;
}
